import {  Table, Button } from 'antd';
import "./index.scss"

const UserManager = () => {
  const columns = [
    {
      title: '节点ID',
      dataIndex: 'id',
      key: 'id',
    },
    {
      title: '节点名称',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '节点计算能力/GHZ',
      dataIndex: 'calcAbility',
      key: 'calcAbility',
    },
    {
      title: '节点队列大小',
      dataIndex: 'size',
      key: 'size',
    },
    {
      title: '所配置Agent',
      dataIndex: 'agent',
      key: 'agent',
    },
    {
      title: '注册时间',
      dataIndex: 'loginTime',
      key: 'loginTime',
    },
    {
      title: "操作",
      key: "",
      render: (_, __, index) => {
        return (
          <div className='actionBar'>
            <Button type="primary">修改</Button>
            <Button type="primary">删除</Button>
          </div>
        )
      }
    }
  ];
  const data = [
    {
      id: '1',
      name: "AO1",
      calcAbility: '3.5',
      size: "50",
      agent:"METD-DRL",
      loginTime: "2023-11-10"
    },
  ];
  return (
    <>
      <Table columns={columns} dataSource={data} />
    </>
  )
}

export default UserManager;